<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>位移变形</title>

        <style>

            /* 将transform属性的值设置为translate()，即可实现位移变形
                            transform: translate（100px, 200px）;
                                                 向右移动 向下移动
            */
            .box1 {
                width: 200px;
                height: 200px;
                background-color: orange;
            }
            .box2 {
                width: 200px;
                height: 200px;
                background-color: green;
                transform: translate(400px,100px);
            }
            .box3 {
                width: 200px;
                height: 200px;
                background-color: blue;
            }
        </style>
    </head>
    <body>
        <div class="box1"></div>
        <div class="box2"></div>
        <div class="box3"></div>
    </body>
</html>